package com.lingxu.api.sysdata.controller;

import com.lingxu.api.sysdata.service.IDataGatherService;
import com.lingxu.base.common.api.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @program: ptmh
 * @ClassName DataGatherContorller
 * @description:
 * @author: gxy
 * @create: 2025-07-19 13:39
 * @Version 1.0
 **/
@Slf4j
@Api(tags = "API数据采集", value = "DataGatherController")
@Validated
@CrossOrigin
@RestController
@RequestMapping("/cimsProjectSectionInfo")
public class DataGatherController {

    @Resource
    private IDataGatherService dataGatherService;

    @ApiOperation(value="项目信息表采集")
    @GetMapping(value = "/getProject")
    public Result<?> getProject() {
        dataGatherService.project();
        return Result.ok("后台处理中");
    }
    /**
     * 标段表采集
     * API_ZTB_PARAGRAPH标段表
     */
    @ApiOperation(value="标段表采集")
    @GetMapping(value = "/getParagraph")
    public Result<?> getParagraph() {
        dataGatherService.paragraph();
        return Result.ok("后台处理中");
    }
    /**
     * 中标结果公告表采集
     * API_ZTB_BIDWINSHOW中标结果公告表
     */
    @ApiOperation(value="中标结果公告表采集")
    @GetMapping(value = "/getBidwinshow")
    public Result<?> getBidwinshow() {
        dataGatherService.bidwinshow();
        return Result.ok("后台处理中");
    }
    /**
     * 招标公告和标段匹配表采集
     * API_ZTB_NOTICE_PARAGRAPH招标公告和标段匹配表
     */
    @ApiOperation(value="中标结果公告表采集")
    @GetMapping(value = "/getNoticeParagraph")
    public Result<?> getNoticeParagraph() {
        dataGatherService.noticeParagraph();
        return Result.ok("后台处理中");
    }
    /**
     * 投标报名表采集
     * API_ZTB_TENDERAPPLY投标报名表
     */
    @ApiOperation(value="投标报名表采集")
    @GetMapping(value = "/getTenderapply")
    public Result<?> getTenderapply() {
        dataGatherService.tenderapply();
        return Result.ok("后台处理中");
    }
    /**
     * 招标公告表采集
     * API_ZTB_BIDDINGNOTICE招标公告表
     */
    @ApiOperation(value="招标公告表采集")
    @GetMapping(value = "/getBiddingnotice")
    public Result<?> getBiddingnotice() {
        dataGatherService.biddingnotice();
        return Result.ok("后台处理中");
    }
    /**
     * 详细评审结果表采集
     * API_ZTB_TRIALRESULT详细评审结果表
     */
    @ApiOperation(value="详细评审结果表采集")
    @GetMapping(value = "/getTrialresult")
    public Result<?> getTrialresult() {
        dataGatherService.trialresult();
        return Result.ok("后台处理中");
    }
    /**
     * 评审专家组表采集
     * API_ZTB_TRIALEXPERTGROUP评审专家组表
     */
    @ApiOperation(value="评审专家组表采集")
    @GetMapping(value = "/getTrialexpertgroup")
    public Result<?> getTrialexpertgroup() {
        dataGatherService.trialexpertgroup();
        return Result.ok("后台处理中");
    }
    /**
     * 专家表采集
     * API_ZTB_EXPERT专家表
     */
    @ApiOperation(value="专家表采集")
    @GetMapping(value = "/getExpert")
    public Result<?> getExpert() {
        dataGatherService.expert();
        return Result.ok("后台处理中");
    }
    /**
     * 项目标段信息表采集
     * API_CIMS_PROJECT_SECTION_INFO项目标段信息表
     */
    @ApiOperation(value="项目标段信息表采集")
    @GetMapping(value = "/getCimsprojectsectioninfo")
    public Result<?> getCimsprojectsectioninfo() {
        dataGatherService.cimsprojectsectioninfo();
        return Result.ok("后台处理中");
    }

    /**
     * TODO待定 人员基本信息
     * API_CIMS_STAFF_BASE
     */
    @ApiOperation(value="人员基本信息采集")
    @GetMapping(value = "/getCmsstaffbase")
    public Result<?> getCmsstaffbase() {
        dataGatherService.cimsstaffbase();
        return Result.ok("后台处理中");
    }

    /**
     * 评标办法表
     * ZTB_TRIAL
     */
    @ApiOperation(value="评标办法表采集")
    @GetMapping(value = "/getTrial")
    public Result<?> getTrial() {
        dataGatherService.trial();
        return Result.ok("后台处理中");
    }

    /**
     * 招标评标工作备案表
     * ZTB_BIDDINGEVAFILEHIS
     */
    @ApiOperation(value="招标评标工作备案表采集")
    @GetMapping(value = "/getBiddingevafilehis")
    public Result<?> getBiddingevafilehis() {
        dataGatherService.biddingevafilehis();
        return Result.ok("后台处理中");
    }

    /**
     * 初步评审结果表
     * ZTB_QUACHECKRESULT
     */
    @ApiOperation(value="初步评审结果表采集")
    @GetMapping(value = "/getQuacheckresult")
    public Result<?> getQuacheckresult() {
        dataGatherService.quacheckresult();
        return Result.ok("后台处理中");
    }

    /**
     * 详细评审项表
     * ZTB_TRIALGRADE
     */
    @ApiOperation(value="详细评审项表采集")
    @GetMapping(value = "/getTrialgrade")
    public Result<?> getTrialgrade() {
        dataGatherService.trialgrade();
        return Result.ok("后台处理中");
    }

    /**
     * 初步评审项表
     * ZTB_QUACHECKPOLICY
     */
    @ApiOperation(value="初步评审项表采集")
    @GetMapping(value = "/getQuacheckpolicy")
    public Result<?> getQuacheckpolicy() {
        dataGatherService.quacheckpolicy();
        return Result.ok("后台处理中");
    }

    /**
     * 招标文件表
     * ZTB_BIDDINGFILE
     */
    @ApiOperation(value="招标文件表采集")
    @GetMapping(value = "/getBiddingfile")
    public Result<?> getBiddingfile() {
        dataGatherService.biddingfile();
        return Result.ok("后台处理中");
    }

    /**
     * 招标文件修改记录表
     * ZTB_BIDDINGFILECHANGEHIS
     */
    @ApiOperation(value="招标文件修改记录表采集")
    @GetMapping(value = "/getBiddingfilechangehis")
    public Result<?> getBiddingfilechangehis() {
        dataGatherService.biddingfilechangehis();
        return Result.ok("后台处理中");
    }

    /**
     * 中标候选人公告
     * ZTB_BIDDINGCANDIDATE
     */
    @ApiOperation(value="中标候选人公告采集")
    @GetMapping(value = "/getBiddingcandidate")
    public Result<?> getBiddingcandidate() {
        dataGatherService.biddingcandidate();
        return Result.ok("后台处理中");
    }

    /**
     * 企业基本信息表
     * CIMS_ENTERPRISE_BASE
     */
    @ApiOperation(value="企业基本信息表采集")
    @GetMapping(value = "/getEnterprisebase")
    public Result<?> getEnterprisebase() {
        dataGatherService.enterprisebase();
        return Result.ok("后台处理中");
    }

    /**
     * 更正公告表
     * ZTB_BIDDINGNOTICEADDITIONAL
     */
    @ApiOperation(value="更正公告表采集")
    @GetMapping(value = "/getBiddingnoticeadditional")
    public Result<?> getBiddingnoticeadditional() {
        dataGatherService.biddingnoticeadditional();
        return Result.ok("后台处理中");
    }

    @ApiOperation(value="投标单位信息表")
    @GetMapping(value = "/getTenderapplyprivatemessage")
    public Result<?> getTenderapplyprivatemessage() {
        dataGatherService.tenderapplyprivatemessage();
        return Result.ok("后台处理中");
    }

    @ApiOperation(value="施工图设计表")
    @GetMapping(value = "/getY029_SGTSJmessage")
    public Result<?> getY029_SGTSJmessage() {
        dataGatherService.SGTSJ();
        return Result.ok("后台处理中");
    }
}
